interface IState {
    stateName: string | number;
    onInit();
    onEnter(): Promise<void>;
    onLeave();
    onUpdate(dt: number);
}